package com.car.loan.project.xr.util.bo.business.modify;

import com.car.loan.project.xr.domain.CustomerGuarantor;
import com.car.loan.project.xr.domain.CustomerSpouse;
import com.car.loan.project.xr.domain.LoanContact;
import com.car.loan.project.xr.util.vo.modify.LoanModifyDetail.BaseInfo;
import com.car.loan.project.xr.util.vo.modify.LoanModifyDetail.BusinessInfo;
import com.car.loan.project.xr.util.vo.modify.LoanModifyDetail.CustomerInfo;
import com.car.loan.project.xr.util.vo.modify.LoanModifyDetail.RepayInfo;
import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import javax.validation.constraints.NotBlank;
import lombok.Data;

/**
 * @author huangding
 * @date 2020/2/20 20:42
 */
@Data
public class LoanModifyBo {

    @ApiModelProperty(value = "业务id", required = true)
    @NotBlank
    private String loanId;

    @ModifyIgnore
    public String getLoanId() {
        return loanId;
    }


    @ApiModelProperty("基本信息")
    private BaseInfo baseInfo;

    @ApiModelProperty("借款人信息")
    private CustomerInfo customerInfo;

    @ApiModelProperty("配偶信息")
    private CustomerSpouse customerSpouse;

    @ApiModelProperty("担保人信息")
    private List<CustomerGuarantor> customerGuarantorInfos = Lists.newArrayList();


    @ApiModelProperty("联系人信息")
    private List<LoanContact> customerContactInfos;


    @ApiModelProperty("业务信息")
    private BusinessInfo businessInfo;

    @ApiModelProperty("还款信息")
    private RepayInfo repayInfo;

    @ApiModelProperty("修改备注")
    private String modifyRemark;

    @ModifyIgnore
    public List<CustomerGuarantor> getCustomerGuarantorInfos() {
        return customerGuarantorInfos;
    }



    @ModifyIgnore
    public List<LoanContact> getCustomerContactInfos() {
        return customerContactInfos;
    }


    @ModifyIgnore
    public String getModifyRemark() {
        return modifyRemark;
    }
}
